<!--
 * @Author: your name
 * @Date: 2021-07-21 19:31:45
 * @LastEditTime: 2021-07-21 22:08:31
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \noproblemi:\实训东软H5\仓库\h5_2002\编码\cat\src\views\inquiry\inquiry.vue
-->


<template>
  <div class="outpatient-container">
    <el-container class="out-container">
      <el-header class="header" height="120px">
        <div class="logo">
          <img src="../../assets/images/logo-title.png" alt="logo" />
        </div>
        <div class="nav">
          <el-menu class="menu" router mode="horizontal">
            <template v-for="item in menu">
              <el-menu-item
                v-if="!item.subs"
                :key="item.index"
                :index="item.index"
                >{{ item.label }}</el-menu-item
              >
              <el-submenu v-else :key="item.index" :index="item.index">
                <template #title>{{ item.label }}</template>
                <el-menu-item
                  v-for="subItem in item.subs"
                  :key="subItem.index"
                  :index="subItem.index"
                >
                  {{ subItem.label }}
                </el-menu-item>
              </el-submenu>
            </template>
          </el-menu>
        </div>
        <div class="user"></div>
      </el-header>
      <el-main>
        <el-container class="inner-container">
          <el-header>
            <div class="left">
              <div class="patient-project">诊疗科室</div>
            </div>
            <div class="right">
              <el-breadcrumb separator-class="el-icon-arrow-right">
                <el-breadcrumb-item :to="{ path: '/' }"
                  >首页</el-breadcrumb-item
                >
                <el-breadcrumb-item>问诊预约</el-breadcrumb-item>
              </el-breadcrumb>
            </div>
          </el-header>
          <el-container class="side-container">
            <el-aside width="200px">
              <el-menu
                default-active="/InServe1"
                class="el-menu-vertical-demo"
                
                text-color="black"
                active-text-color="rgb(238,162,164)"
                router
              >
                <el-menu-item index="/InServe1">
                  <i class="el-icon-menu"></i>
                  <template #title>猫专科</template>
                </el-menu-item>
                <el-menu-item index="/InServe2">
                  <i class="el-icon-menu"></i>
                  <template #title>软组织外科</template>
                </el-menu-item>
                <el-menu-item index="/InServe3">
                  <i class="el-icon-document"></i>
                  <template #title>骨科</template>
                </el-menu-item>
                <el-menu-item index="/InServe4">
                  <i class="el-icon-setting"></i>
                  <template #title>内科</template>
                </el-menu-item>
                <el-menu-item index="/InServe5">
                  <i class="el-icon-menu"></i>
                  <template #title>外科</template>
                </el-menu-item>
                <el-menu-item index="/InServe6">
                  <i class="el-icon-document"></i>
                  <template #title>牙科</template>
                </el-menu-item>
                <el-menu-item index="/InServe7">
                  <i class="el-icon-setting"></i>
                  <template #title>皮肤科</template>
                </el-menu-item>
              </el-menu>
            </el-aside>
            <el-main>
              <router-view />
            </el-main>
          </el-container>
        </el-container>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {
      menu: [
        {
          label: "猫猫市场",
          index: "/shop",
        },
        {
          label: "养猫指南",
          index: "/guide",
          subs: [
            {
              label: "猫猫信息",
              index: "/guide/info",
            },
            {
              label: "饲养指南",
              index: "/guide/feed",
            },
          ],
        },
        {
          label: "用品商城",
          index: "/goods",
        },
        {
          label: "猫猫护理",
          index: "/cater",
          subs: [
            {
              label: "美容预约",
              index: "/cater/beauty",
            },
            {
              label: "问诊预约",
              index: "/cater/diagnose",
            },
          ],
        },
        {
          label: "帮助中心",
          index: "/feedback",
        },
      ],
    };
  },
  mounted() {
      this.$router.replace('/InServe1')
  }
};
</script>

<style lang="less" scoped>
@import "../../assets/less/common";
.outpatient-container {
  height: 100%;
}
.outpatient-container {
  height: 100%;
}
.inner-container .el-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
//   background-color: rgb(230,224,215);
  box-shadow: 1px 1px 3px rgb(143, 136, 136);
  .left {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 179px;
    font-size: 20px;
    text-align: center;
    // background-color: rgb(112, 107, 99);
  }
}
.inner-container .side-container {
  .el-aside {
    padding-left: 20px;
    padding-top: 20px;
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  padding-left: 32px;

  img {
    height: 100px;
  }
}

.menu {
  border-bottom-color: #f9c3c5 !important;
}

.page {
  width: 100%;
  height: 100%;
}
</style>